from django.db import models
import django.utils.encoding

class Track(models.Model):
	title = models.CharField(max_length=200)
	artist = models.CharField(max_length=200)
	play_count=models.IntegerField()
	date_added = models.DateTimeField()
	user = models.CharField(max_length=100)
	def __unicode__(self):
	        return self.title +" " + self.artist + " " + str(self.play_count) + " " + self.date_added.isoformat()
	
	
class User(models.Model):
	key = models.CharField(max_length=200)
	def __unicode__(self):
		return self.key